package com.ktjy.service.impl;

import com.ktjy.entity.Supplier;
import com.ktjy.mapper.SupplierMapper;
import com.ktjy.service.SupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("supplierService")
public class SupplierServiceImpl implements SupplierService {

    @Autowired
    SupplierMapper supplierMapper;

    @Override
    @Transactional
    public int delete(Long id) {
        return supplierMapper.delete(id);
    }

    @Override
    @Transactional
    public int update(Supplier supplier) {
        return supplierMapper.update(supplier);
    }
}
